﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SarkothFarmer.Helpers;
using Zeta.Common;
using Zeta.CommonBot;
using Zeta.Internals.Actors;

namespace SarkothFarmer.ClassSpecifics
{
    class DemonHunter : Common
    {
        public override void FastMoveTo(Vector3 v)
        {
            UsePowerAt(SNOPower.DemonHunter_Vault, v);
            base.MoveTo(v);
        }
        public override void MoveTo(Vector3 v)
        {
            if (Zeta.ZetaDia.Me.Position.Distance(v) >= 15)
            {
                FastMoveTo(v);
            }
            else
            {
                base.MoveTo(v);
            }
        }
        protected override bool SafeTP()
        {
            if (Composites.IsUnitNear(Main.settingsWrapper.SafeTPDistance))
            {
                UsePowerSelf(SNOPower.DemonHunter_Caltrops);
            }
            return base.SafeTP();
        }
        public override void PreCombat()
        {
            var sarkoth = Objects.Sarkoth;
            if (sarkoth != null)
                UsePowerOn(SNOPower.DemonHunter_ClusterArrow, sarkoth);
            UsePowerSelf(SNOPower.DemonHunter_Companion);
            base.PreCombat();
        }
        public override int KillRadius
        {
            get { return 40; }
        }
    }
}
